import React, {Component} from 'react';
import {BrowserRouter} from "react-router-dom";
import {Provider} from 'react-redux';
import store from "@/store/store";
import {RenderRoutes} from "./router/utils";
import {routers as routerConfig} from "./router/index";


class App extends Component{
    render() {
        return (
            //绑定redux
            <Provider store={store}>
                <BrowserRouter>
                    <RenderRoutes routes={routerConfig}/>
                </BrowserRouter>
            </Provider>
        )
    }
}


export default App;
